<?php
/**
 * TW Simply Scroll Module
 *
 * @version 1.0.0
 * @author Tomsy Web
 * @copyright Copyright (C) 2010 Tomsy Web. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * 
 */
 
defined('_JEXEC') or die('Restricted access');
require_once(dirname(__FILE__).DS.'helper.php');


$classname = trim($params->get('classname', 'simply-scroll'));
$framerate = (int)trim($params->get('framerate', '24'));
$speed = (int)trim($params->get('speed', '1'));
$horizontal = trim($params->get('horizontal', 'false'));
if ($horizontal == '1') $horizontal = 'true';
$automode = trim($params->get('automode', 'off'));
$pauseonhover = trim($params->get('pauseonhover', 'false'));
if ($pauseonhover == '1') $pauseonhover = 'true';
$startonload = trim($params->get('startonload', 'false'));
if ($startonload == '1') $startonload = 'true';
$flickrfeed = trim($params->get('flickrfeed', ''));
$jsonsource = trim($params->get('jsonsource', ''));
$jsonimgwidth = (int)trim($params->get('jsonimgwidth', '240'));
$jsonimgheight = (int)trim($params->get('jsonimgheight', '180'));
$img = $params->get('img', '');

$k = modSimplyScrollHelper::increment();

modSimplyScrollHelper::loadScripts($classname, $framerate, $speed, $horizontal, $automode, $pauseonhover, $startonload, $flickrfeed, $jsonsource, $jsonimgwidth, $jsonimgheight, $k);
require(JModuleHelper::getLayoutPath('mod_twsimplyscroll'));